package org.ovirt.microvirt.beans.plan;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

import org.ovirt.microvirt.beans.VirtualMachine;
import org.ovirt.microvirt.beans.situation.VirtualMachineState;

@Entity
@DiscriminatorValue("vm")
public class VirtualMachineStateRequirement extends Requirement {
	@OneToOne
	VirtualMachine virtualMachine;
	@Column(name="state")
	VirtualMachineState state;
	public VirtualMachine getVirtualMachine() {
		return virtualMachine;
	}
	public void setVirtualMachine(VirtualMachine virtualMachine) {
		this.virtualMachine = virtualMachine;
	}
	public VirtualMachineState getState() {
		return state;
	}
	public void setState(VirtualMachineState state) {
		this.state = state;
	}
}
